<a href="http://github.com/angular/angular.js/edit/master/docs/content/error/resource/badmember.ngdoc" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">Syntax error in param value using @member lookup</code>
<div><span class="hint">error in component <code ng:non-bindable="">$resource</code>
</span>
</div>
</h1>
<div><pre class="minerr-errmsg" error-display="Dotted member path &quot;@{0}&quot; is invalid.">Dotted member path "@{0}" is invalid.</pre>
<h2 id="description">Description</h2>
<div class="description"><div class="-resource-page -resource-badmember-page"><p>Occurs when there is a syntax error when attempting to extract a param
value from the data object.</p>
<p>Here&#39;s an example of valid syntax for <code>params</code> or <code>paramsDefault</code>:</p>
<pre><code class="lang-javascript">{
  bar: &#39;@foo.bar&#39;
}</code></pre>
<p>The part following the <code>@</code>, <code>foo.bar</code> in this case, should be a simple
dotted member lookup using only ASCII identifiers.  This error occurs
when there is an error in that expression.  The following are all syntax
errors</p>
<table>
<thead>
<tr>
<th>Value</th>
<th>Error</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>@</code></td>
<td>Empty expression following <code>@</code>.</td>
</tr>
<tr>
<td><code>@1.a</code></td>
<td><code>1</code> is an invalid javascript identifier.</td>
</tr>
<tr>
<td><code>@.a</code></td>
<td>Leading <code>.</code> is invalid.</td>
</tr>
<tr>
<td><code>@a[1]</code></td>
<td>Only dotted lookups are supported (no index operator)</td>
</tr>
</tbody>
</table>
</div></div>
</div>
